package com.xdtech.hotel.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-05-25 21:41:22
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="HOTEL_PROTOCOL_CMD")
public class ProtocolCmd extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="TYPE")
	private String type;
	@Column(name="SN")
	private String sn;
	@Column(name="IP")
	private String ip;
	@Column(name="PORT")
	private String port;
	@Column(name="CMD")
	@Lob
	private String cmd;
	@Column(name="FIRST_RESULT")
	@Lob
	private String firstResult;
	@Column(name="SECOND_RESULT")
	@Lob
	private String secondResult;
	@Column(name="RESULT")
	@Lob
	private String result;
	
	

	public ProtocolCmd(String type, String sn, String ip, String port,
			String cmd, String firstResult,String result) {
		super();
		this.type = type;
		this.sn = sn;
		this.ip = ip;
		this.port = port;
		this.cmd = cmd;
		this.firstResult = firstResult;
		this.result = result;
	}
	public ProtocolCmd() {
		super();
		// TODO Auto-generated constructor stub
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public String getSn() {
		return sn;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getIp() {
		return ip;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public String getPort() {
		return port;
	}
	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
	public String getCmd() {
		return cmd;
	}
	public void setFirstResult(String firstResult) {
		this.firstResult = firstResult;
	}
	public String getFirstResult() {
		return firstResult;
	}
	public void setSecondResult(String secondResult) {
		this.secondResult = secondResult;
	}
	public String getSecondResult() {
		return secondResult;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getResult() {
		return result;
	}
}
